var windowName = "myWorkLog";
apiready = function(){
    onWindowShow(function () {
    })
    onWindowHide(function () {
    })
    console.log("index page is OK");
    var Page = createVM("#Page",{
        //页面数据
        list:[]
        ,curSite:{}
        ,open:false
    },{
        //页面方法
        "init":function () {
            // showLoading()
            RoleWenYuan()
            getCurSite(this)
            var cur = getLocData("curSite")
            this.curSite = cur;
        },
        'setCurSite': function (index) {
            setLocData("curSite",this.list[index])
            this.curSite = this.list[index];
            this.open = true;
        }
        , closeBottomSheet: function () {
            this.open = false;
        }
        , selectOption: function (index) {
        }
    })

    Page.init()

}
function getCurSite(_this) {
    apiLoad("/app/my/work/log",{},function (res) {
        log(res)
        _this.list = res.data
    })
}